package com.woniu.adopt_web.service;

import com.woniu.adopt_web.entity.ViewPage;
import com.woniu.adopt_web.mapper.ViewPageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexService {
    @Autowired
    private ViewPageMapper viewPageMapper;

    public List<ViewPage>  initViewPage(){
        return viewPageMapper.selectAll();
    }
}
